package main

import (
	"fmt"
	"reflect"
)

type Person struct {
	name string
	age int
}

func main() {
	p:=Person{"damao",22}

	typeInfo:=reflect.TypeOf(p);
	ageField:=typeInfo.Field(1)
	fmt.Printf("%+v\n", ageField)
}
